package com.mspbots.core.ticketai.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mspbots.core.AbstractBaseServiceImpl;
import com.mspbots.core.ticketai.mapper.AgreementsMapper;
import com.mspbots.core.ticketai.model.Agreements;
import com.mspbots.core.ticketai.service.AgreementsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * com.mspbots.core.ticketai.service.impl.AgreementsServiceImpl
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/12/20
 */
@Service
public class AgreementsServiceImpl extends AbstractBaseServiceImpl<AgreementsMapper, Agreements>
        implements AgreementsService {
    @Override
    public List<Agreements> queryareements(Long tenantId, Long companyId) {
        QueryWrapper<Agreements> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("tenant_id", tenantId).eq("company_id", companyId);
        return this.list(queryWrapper);
    }
}
